//
//  UserModel.h
//  Meroad
//
//  Created by 沈煜航 on 2019/2/19.
//  Copyright © 2019 沈煜航. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapLocationKit/AMapLocationKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserModel : NSObject<AMapLocationManagerDelegate>

@property (nonatomic) AMapLocationManager *locationManager;
@property (nonatomic) CLLocation *location;
@property (nonatomic, copy) NSString *address;    //具体位置（中文）

@property (nonatomic) NSString *userName;
@property (nonatomic) UIImage *userHeaderImage;
@property (nonatomic) NSString *userGender;
@property (nonatomic) NSString *userBirth;
@property (nonatomic) NSString *userAge;
@property (nonatomic) NSString *userEmail;
@property (nonatomic) NSString *userTel;
@property (nonatomic) NSString *userOccupation;
@property (nonatomic) NSString *userPlace;
@property (nonatomic) NSString *userHome;
@property (nonatomic) NSString *userCredit;
@property (nonatomic) NSString *userType;

@property (nonatomic) NSData *cookie;

-(instancetype)initWithDict:(NSDictionary*)dict;
+(instancetype)modelWithDict:(NSDictionary*)dict;


-(void)beginGettingLocation;

-(void)initialAddress;

@end

NS_ASSUME_NONNULL_END
